//
//  MyOrderModel.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/22.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "MyOrderModel.h"

@implementation MyOrderModel

- (void) decodedic:(NSDictionary *)dic
{
    if (dic) {
        if (![[dic objectForKey:@"resultCode"] isKindOfClass:[NSNull class]]) {
            self.resultCode = [dic objectForKey:@"resultCode"];
        }
        if (![[dic objectForKey:@"orderNumber"] isKindOfClass:[NSNull class]]) {
            self.orderNumber = [dic objectForKey:@"orderNumber"];
        }
        if (![[dic objectForKey:@"img"] isKindOfClass:[NSNull class]]) {
            self.img = [dic objectForKey:@"img"];
        }
        if (![[dic objectForKey:@"description"] isKindOfClass:[NSNull class]]) {
            self.descriptionText = [dic objectForKey:@"description"];
        }
        if (![[dic objectForKey:@"other"] isKindOfClass:[NSNull class]]) {
            self.other = [dic objectForKey:@"other"];
        }
        if (![[dic objectForKey:@"amount"] isKindOfClass:[NSNull class]]) {
            self.amount = [dic objectForKey:@"amount"];
        }
        if (![[dic objectForKey:@"status"] isKindOfClass:[NSNull class]]) {
            self.status = [dic objectForKey:@"status"];
        }
        if (![[dic objectForKey:@"msg"] isKindOfClass:[NSNull class]]) {
            self.msg = [dic objectForKey:@"msg"];
        }
        if (![[dic objectForKey:@"price"] isKindOfClass:[NSNull class]]) {
            self.price = [dic objectForKey:@"price"];
        }
    }
}
@end
